<template>
  <button @click="showInfo">输出信息</button>
</template>

<script setup>
const showInfo = () => {
  console.log('欢迎来到Vue.js的世界！')
}
</script>
 